# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-pce-fast
pkgver=0_git20220205
pkgrel=0
_commit="e8801687f232a6f8828b3ff5dadbc9fe1b0076fc"
pkgdesc="standalone fork of Mednafen PCE Fast to libretro"
url="https://github.com/libretro/beetle-pce-fast-libretro"
arch="all"
license="GPL-2.0-only"
makedepends="zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-pce-fast-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/beetle-pce-fast-libretro-$_commit"
options="!check" # No tests

build() {
	rm -rf deps/zlib*
	make SYSTEM_ZLIB=1
}

package() {
	install -Dm644 mednafen_pce_fast_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_pce_fast_libretro.so
}

sha512sums="
75145b4d3fbd8503ec5cf2f96a3b45e379031fe0cf585f6afe993bc394e15807e5f9fd8cc78d217a664d60af40100275cbe35717c5a1251992ce913d407e9292  libretro-beetle-pce-fast-e8801687f232a6f8828b3ff5dadbc9fe1b0076fc.tar.gz
"
